﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcTest.Models.Board>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <% using (Html.BeginForm("BoardProcess", "Board", FormMethod.Post)) {%>
        <%: Html.ValidationSummary(true) %>
        

       <fieldset>
        <input type="hidden" name="wr_id" value="<%: Model.wr_id %>" />
            <div class="editor-label">
               글쓴이
            </div>
            <div class="editor-field">
                <input type="text" id="wr_name" name="wr_name" value="<%: Model.wr_name %>" />
            </div>
            <div class="editor-label">
               패스워드
            </div>
            <div class="editor-field">
                <input type="password" id="wr_password" name="wr_password" value="<%: Model.wr_password %>" />
            </div>
            
            <div class="editor-label">
               제목
            </div>
            <div class="editor-field">
                <input type="text" id="wr_subject" name="wr_subject" value="<%: Model.wr_subject %>" />
            </div>
            <div class="editor-label">
               내용
            </div>
            <div class="editor-field">
                <textarea rows="20" cols="100" id="wr_content" name="wr_content" ><%: Model.wr_content%></textarea>
            </div>
            
          
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

